![]() |
WindowPositionMethod |
Header: MacWindows.h |
enum WindowPositionMethod { kWindowCenterOnMainScreen = 1, kWindowCenterOnParentWindow = 2, kWindowCenterOnParentWindowScreen = 3, kWindowCascadeOnMainScreen = 4, kWindowCascadeOnParentWindow = 5, kWindowCascadeOnParentWindowScreen = 6, kWindowAlertPositionOnMainScreen = 7, kWindowAlertPositionOnParentWindow = 8, kWindowAlertPositionOnParentWindowScreen = 9 };
Center the window, both horizontally and vertically, on the screen that contains the menu bar.
Center the window, both horizontally and vertically, on the parent window. If the window to be centered is wider than the parent window, its left edge is aligned with the parent window’s left edge.
Center the window, both horizontally and vertically, on the screen containing the parent window.
Place the window just below the menu bar at the left edge of the main screen. Subsequent windows are placed on the screen relative to the first window, such that the frame of the preceding window remains visible behind the current window. The exact amount by which windows are offset depends upon the dimensions of the window frame under a given appearance.
Place the window a distance below and to the right of the upper-left corner of the parent window such that the frame of the parent window remains visible behind the current window. The exact amount by which windows are offset depends upon the dimensions of the window frame under a given appearance.
Place the window just below the menu bar at the left edge of the screen containing the parent window. Subsequent windows are placed on the screen relative to the first window, such that the frame of the preceding window remains visible behind the current window. The exact amount by which windows are offset depends upon the dimensions of the window frame under a given appearance.
Center the window horizontally and position it vertically on the screen that contains the menu bar, such that about one-fifth of the screen is above it.
Center the window horizontally and position it vertically such that about one-fifth of the parent window is above it.
Center the window horizontally and position it vertically such that about one-fifth of the screen containing the parent window is above it.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)